package com.explorati.design_pattern.comparson.behavior.strategy;

public class Client {

	public static void main(String[] args) {
		Context context;
		System.out.println("============执行ZIP算法===========");
		context = new Context(new Zip());

		context.compress("c:\\gx", "d:\\gx.zip");
		context.uncompress("d:\\gx/zip", "e:\\gx");

		System.out.println("============执行GZIP算法=============");
		context = new Context(new Gzip());
		context.compress("/teacher", "/home/teacher.gz");
		context.compress("/home/teacher.gz", "teacher");
	}
}
/*执行结果
 ============执行ZIP算法===========
c:\gx-->d:\gx.zipZip压缩成功！
d:\gx/zip-->e:\gxZip解压缩算法成功!
============执行GZIP算法=============
/teacher-->/home/teacher.gzGzip压缩成功！
/home/teacher.gz-->teacherGzip压缩成功！
 * */
